import request from '@/router/axios';

//项目文档和规范管理
//项目文档和规范管理列表
export const getDocumentList = (params) => {
  return request({
    url: '/api/hg-public/apqpfiletmpl/list',
    method: 'get',
    params: {
      ...params,
    }
  })
}
//新增项目文档和规范管理
export const addDocument = (row) => {
  return request({
    url: '/api/hg-public/apqpfiletmpl/save',
    method: 'post',
    data: row
  })
}

//删除项目文档和规范管理
export const removeDocument = (ids) => {
  return request({
    url: '/api/hg-public/apqpfiletmpl/remove',
    method: 'post',
    params: {
      ids,
    }
  })
}

//更新项目文档和规范管理
export const updateDocument = (row) => {
  return request({
    url: '/api/hg-public/apqpfiletmpl/update',
    method: 'post',
    data: row
  })
}

//获取项目文档和规范管理详情
export const getDocument = (id) => {
  return request({
    url: '/api/hg-public/apqpfiletmpl/detail',
    method: 'get',
    params: {
      id,
    }
  })
}

//获取部门
export const getDept = () => {
  return request({
    url: '/api/hg-public/personinfo/deptlist',
    method: 'get',
    params: {
    }
  })
}
